#include "resource/model.h"
#include "resource/model/modelloader.h"


using namespace kraw;

Model::Model(AssetLoader* loader) :
Resource(loader)
{
	//...
}

bool Model::doLoad()
{
	//TODO- initialize OGLES2 buffers
	ModelLoader* modelLoader = static_cast<ModelLoader*>(loader);
	for (int i=0; i<modelLoader->meshes.size(); i++) {
		Mesh* mesh = modelLoader->meshes[i];
		//TODO- create vertex/index buffers from mesh
	}

	return false;
}
